cut 0s on string python

47

cut 0s on string python -

>>> '00000010'.lstrip('0')
'10'

Comments

Submit
0 Comments